package com.chenqi.model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @description:
 * @program: ardaicommunity
 * @author: ChenQi
 * @create: 2021-03-2021/3/9-14-48
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginDTO {

    @NotBlank(message = "账号不能为空")
    @Length(min = 5,max = 15,message = "账号必须大于5小于15")
    private String username;
    @NotBlank(message = "密码不能为空")
    @Length(min = 5,max = 15,message = "密码必须大于5小于15")
    private String password;
}
